package cn.kgc.ssm.controller;

import cn.kgc.ssm.service.EchartsService;
import cn.kgc.ssm.util.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 课工场
 * @date 2023/10/30
 * @description
 */
@RestController
@RequestMapping("echarts")
public class EchartsController {

    @Resource
    private EchartsService echartsService;

    @GetMapping("lineData")
    public ResponseResult lineData(){

        return  echartsService.getLineData();
    }

}
